package com.probox.common.entity.domain.product;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.probox.common.core.annotation.Excel;

/**
 * 商品属性值对象 product_property_values
 *
 *
 * @date 2021-05-28
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("product_property_values")
public class ProductPropertyValues implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 规格/属性ID
     */
    //默认主键自增
    @TableId(value = "VALUES_UID", type = IdType.AUTO)
    private Long valuesUid;
    /**
     * 商品ID
     */
    @Excel(name = "商品ID")
    private Long productUid;
    /**
     * skuID
     */
    @Excel(name = "skuID")
    private Long skuUid;
    /**
     * 规格名称ID
     */
    @Excel(name = "规格名称ID")
    private Long specsUid;
    /**
     * 属性值名称
     */
    @Excel(name = "属性值名称")
    private String valuesName;
    /**
     * 数据状态（1有效,0无效)
     */
    @Excel(name = "数据状态", readConverterExp = "数据状态（1有效,0无效)")
    private String dataStatus;
    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long dataPriority;
    /**
     * 更新人ID
     */
    @Excel(name = "更新人ID")
    private Long updateUid;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * 平台ID
     */
    @Excel(name = "平台ID")
    private Long platformUid;

    @Excel(name = "更新人名称")
    private String updateName;

}
